import json

json_str = '{"key": "value","k1": 1,"k2": [{"subkey": 1},{"subkey2": 2}]}'
print(json_str,type(json_str))
json_dict = json.loads(json_str)
print(json_dict,type(json_dict))
print(json_dict['k2'])
for i in json_dict['k2']:
    print(i)